Skip to content
  • 0 Votes
    2 Posts
    166 Views
    F

    Please share idea solution

  • 0 Votes
    5 Posts
    639 Views
    zaasmiZ

    CS201 ASSIGNMENT 3 SOLUTION SPRING 2021

    #include <iostream> using namespace std; #define PI 3.14159265 class Circle { private: double radius; public: void setRadius(); void computeAreaCirc(); Circle(); ~Circle(); }; Circle::Circle() { radius = 0.0; } void Circle::setRadius() { radius = 5.6; } void Circle::computeAreaCirc() { cout << "Area of circle is: " << PI * (radius * radius) << endl; cout << "Circumference of circle is: " << 2 * PI * radius << endl; } Circle::~Circle() { } class Rectangle { private: double length; double width; public: void setLength(); void setWidth(); void computeArea(); Rectangle(); ~Rectangle(); }; Rectangle::Rectangle() { length = 0.0; width = 0.0; } void Rectangle::setLength() { length = 5.0; } void Rectangle::setWidth() { width = 4.0; } void Rectangle::computeArea() { cout << "Area of Rectangle: " << length * width << endl; } Rectangle::~Rectangle() { } main() { cout<<"********************SCIENTIFIC CALCULATOR********************"<<endl; cout<<""<<endl; int run = 1; string option, choice; while(run) { cout << "\nOPTION 1 for computing Area and Circumference of the circle" << endl; cout << "OPTION 2 for computing Area of the Rectangle" << endl; cout << "Select your desired option(1-2): "; cin >> option; if(option == "1") { Circle nCircle; nCircle.setRadius(); nCircle.computeAreaCirc(); cout << "Do you want to perform anyother calculation(Y/N):"; cin >> choice; if(choice == "Y" || choice == "y") { continue; } else { break; } } else if(option == "2") { Rectangle nRectangle; nRectangle.setLength(); nRectangle.setWidth(); nRectangle.computeArea(); cout << "Do you want to perform anyother calculation(Y/N):"; cin >> choice; if(choice == "Y" || choice == "y") { continue; } else { break; } } else { cout << "Invalid Option!, Option should be from (1-2)" << endl; } } }
  • 0 Votes
    2 Posts
    498 Views
    Wade WildW

    Solution Ideas Please!

  • 0 Votes
    3 Posts
    254 Views
    zaasmiZ

    @zaasmi said in CS611 Assignment 1 Solution and Discussion:

    Question - II: Marks: 10
    Continuing the above scenario why is defect-free software important and writes any five steps by which you ensure that your software becomes defects-free.

    Defect-free software is important because

    Delivering defect-free software reduces support costs. Delivering defect-free software reduces programming costs. Delivering defect-free software reduces development time. Delivering defect-free software can provide a competitive advantage

    To ensure that my software is defect-free, I will follow the following steps.

    Will ensure that my collected requirements are accurate and complete Will Trace Every Line of Code When Written Will get time-to-time feedback from client Will perform testing by completing each module Will do proper communication with team members to avoid bugs in software
  • 0 Votes
    4 Posts
    527 Views
    zaasmiZ

    @Fouzia-Suleman said in MGT201 Assignment 1 Solution and Discussion:

    IA new investor wants to add bonds and shares in his portfolio and he has two options available with the following information.
    I. Company ABC issued a five-year bond with face value of Rs.1,000. The bond offers 12% semiannual coupon payment. The market interest rate for such type of investment is 14% per annum while current market price of bond is Rs.940.
    II. The stock of company XYZ is being sold at Rs.54 per share while the forecasted dividend is Rs.6 for first year and Rs.7 for the second year. The price of the stock after year 2 is expected to be Rs.55. The Company paid most recent dividend as Rs.5 whereas the rate of return for such type of investment is 14% per annum.
    You are required to help the investor in valuation of both investment options by calculating:

    Intrinsic value of the bond. (8 marks)
    Intrinsic Value of stock today. (8 marks)
    Identify either bond and stocks are overvalued or undervalued. Justify your answer with proper calculation and reasoning. (4 Marks)

    Assignment#01
    Marks 20

    Intrinsic value of the bond
    Po=Σ Ct/ (1+r/2)n + Par/1+r/2)n
    C = coupon payments = 100012/100 = 120/2 = Rs.60
    No. of coupon payments = 52 = 10 (semi-annual) Required rate of return: 14/2 = 7% (semiannual)
    = 60Annuity factor (7%,10) + 1,000 * PV factor (7%, 10) = 60{1-1/ (1+0.14/2) 52) / (0.14/2)} + 1,000/ (1+ (0.14/2)5*2 = 60{1-1/ (1+0.07)10 /0.07} + 1,000/ (1+0.07)10
    = 421.41+ 508.35
    = Rs. 929.76

    Intrinsic value of the stock
    Do = Current dividend = Rs.5 D1 = Rs.6
    D2 = Rs.7
    Value of Stock:
    Po = D1/ (1+i)n + D2/ (1+i)n + P2/(1+i)n Po = 6/ (1.14)1+ 7/ (1.14)2 + 55/ (1.14)2 Po = 5.26+5.39+42.32
    Po = Rs.52.97
    Bond and Stock valuation Solution

    Overvaluation or undervaluation of securities
    For Bond
    Bond is overvalued because market price is more than intrinsic value i.e. Market price > Intrinsic value
    940 > 929.76
    For Stock
    Stick is also overvalued as its market price is more than its intrinsic value i.e. Market price > Intrinsic value
    54 > 52.97

  • 0 Votes
    2 Posts
    192 Views
    zaasmiZ

  • 0 Votes
    1 Posts
    301 Views
    No one has replied
  • 0 Votes
    1 Posts
    236 Views
    No one has replied
  • 0 Votes
    127 Posts
    12k Views
    zaasmiZ

    @zaasmi said in MTH603 Grand Quiz Solution and Discussion:

    A series 16+8+4+2+1 is replaced by the series 16+8+4+2, then it is called

    Each number in the sequence is half the value of the number receding it. So the common difference in the series is dividing by two.

    16÷2=8

    8÷2=4

    4÷2=2

    2÷2=1

    1÷2=½

    The answer is ½ or 0.5

    When you keep dividing by two, you will notice an interesting pattern: the denominator continues to increase by two, while the numerator value remains the same. That’s fascinating because in natural, whole numbers the numbers in the series would decrease by two.

    1/4 , 1/8 , 1/16 etc.

  • 0 Votes
    29 Posts
    3k Views
    zaasmiZ

    The verizon and symantec reports show that_______________.
    Web is the most vulnerable vector
    Email is the most attacked vector
    IOT is more secure than other technologies
    Malicious internal users or disgruntled employees cause most damage

    e70ae74c-ca3e-4082-9e55-de065a8e5ab4-image.png

  • 0 Votes
    7 Posts
    420 Views
    zareenZ

    Grand Quiz Syllabus and Schedule
    Dear Students,
    Assalam-o-Alaikum!

    Due to the prevailing circumstances, Grand Quiz will be conducted to replace Proctored Mid-Term Exam in this course of MGT201. You can attempt Grand Quiz within 24 Hours. So it is advised to be proactive since there will be no extension.

    Number of Questions 30 Weightage 20% Types of Questions MCQs Opening Date Dec 28, 2020 at 12:00 AM Closing Date Dec 28, 2020 at 11:59 PM Lessons Video Lecture 1-22

    Special Instructions

    You must attempt your Grand Quiz effectively as it is being held as your mid-term exam and it would be equivalent to 20% of the overall course weightage.

    You can start attempting the quiz at any time but within given date(s) by clicking the quick link for Quiz on VU-LMS as it will become enabled within the mentioned dates. As soon as the time will be over, it will automatically be disabled and will not be available to attempt it.

    Please note that some questions of the quiz may require some computation as well. So plan your course preparation accordingly.

    Each question has maximum time limit of 90 seconds to attempt and save. So, you have to save your answer before 90 seconds. But due to unpredictable/unstable Internet speed, it is strongly recommended that you save your answer within 60 seconds to avoid any inconvenience. While attempting a question, keep an eye on the remaining time.

    Attempting quiz is unidirectional. Once you have moved forward to the next question, you will not be able to go back to the previous one. Therefore, before moving to the next question, make sure that you have selected the best option and have saved your answer.

    DO NOT press back button of your browser or refresh the page while attempting a question. Otherwise you will lose the chance of attempting the current question and a new question will be loaded.

    DO NOT try to disable “Java Script” in your browser; otherwise you will not be able to attempt the quiz.

    If for any reason, you lose access to Internet (like power failure or disconnection of Internet); you will be able to attempt the quiz again but from the next question where you left in the last attempt. But remember that you have to complete the quiz before expiry of the deadline.

    Stay Safe & Healthy
    Best of Luck!

  • 0 Votes
    34 Posts
    748 Views
    zaasmiZ

    @zaasmi said in BNK610 Grand Quiz Spring 2020:

    A right of a buyer to rescind a contract after an agreed time period is known as:
    Khiyar e Tayin
    Khiyar al Ruhya
    Khiyar e Wasf
    Khiyar e Aib

    Khiyar-e-Shart (Optional condition): At the time of sale Buyer or Seller can put a condition that he has an option to rescind the sale within the specific 4 days. This option is called Khiyar-e-Shart. Specification of the days is necessary for this Khiyar. Within this period, he has the right to rescind/dissolve the sale without any reason. If the buyer puts the condition, it is called Khiyar-e-Mushtari (option of buyer) and when put by the seller, it is called Khiyar-e-Bai (option of seller). This Khiyar is not transferred to heirs.
    Khiyar-e-Roiyyat (Option of inspecting goods): Where the goods can be returned after inspection. This applies automatically to all contracts. Eg. ‘A’ buys machinery from ‘B’ without seeing. However, ‘A’ has the option to return the machinery after inspection.
    Khiyar-e-Aib (Option of defect): Where the goods can be returned if found defective. It is the responsibility of the seller to supply goods free of error/defect or point out the defect to the buyer. No way is he allowed to cover the defect of the goods which constitutes as fraud. In one of the hadiths, Prophet has stated “He is not amongst us who indulges in fraud.” Therefore the buyer has the right to return the good in case of a defect which is considered a defect in the market and which depreciates the value of the goods. Eg. ‘A’ buys batteries from ‘B’. However, ‘A’ has the option to return them to ‘B’ if the batteries are found to be defective or not in working condition.
    Khiyar-e-Wasf (Option of quality): Where the goods are sold by specifying a certain quality by the Seller but which is absent in the goods. Eg. ‘A’ buys a car from ‘B’ who has specified automatic transmission of the car. However when ‘A’ uses the car, he finds the transmission to be manual. Therefore he can return the car to ‘B’ in the absence of a specific quality.
    Khiyar-e-Ghaban (Option of price): Where the seller sells the goods at a price which is far expensive than the market price, a Buyer has the right to return it to the seller. Eg. a Parker pen is sold to ‘A’ by ‘B’ at a price of Rs.500/-. However after the sale, ‘A’ discovers its market price to be Rs.250/-, he has the option to return the pen to ‘B’.
    Iqala (Recession of Contract): Where parties freely consent to rescind the contract i.e. each party will give back the consideration received by it.

    Neither the buyer nor the seller has the sole right to rescind the contract after execution of a contract. Often the buyer wants to rescind the contract after buying goods. In this case, it is necessary that he gets the seller’s consent. Therefore this mutual agreement between buyer and seller to rescind the contract is called Iqala.

    In one of the hadiths, Prophet has stated “He who does the Iqala (rescinding of the contract) with a Muslim who is not happy with his transaction, Allah will forgive his sins on the Day of Judgment.”

    However, it may be noted that the price of the goods being returned under Iqala will remain unchanged.

    Effect on third Parties: Iqala is treated as a new sale as if a new contract is entered into between the parties rescinding the original contract.

    Source: Dr. Muhammad Imran Ashraf Usmani, Meezan Bank’s Guide to Islamic Banking.

  • 0 Votes
    3 Posts
    557 Views
    zareenZ

    @zareen said in PHY301 Assignment 2 Solution and Discussion:

    Label and identify meshes in given below circuit. Use Loop/Mesh analysis to find currents through all Meshes.

  • 0 Votes
    5 Posts
    297 Views
    zareenZ

    Spring 2020_PHY301_1_SOL.pdf

  • 0 Votes
    1 Posts
    119 Views
    No one has replied
  • 0 Votes
    9 Posts
    234 Views
    zareenZ

    @zareen said in CS409 Assignment 2 Solution and Discussion:

    Consider the given below the ERD

    b715a3fa-af52-42a4-ac14-a1726d7469d4-image.png